getSources

abstract fun getSources(): Iterator<out Source>

Gets an iterator over the content sources contained within this playlist.

The sources are typically iterated in their intended playback order. Each Source object provides details about an individual piece of content.

Note: Modifications to the underlying collection of sources while iterating may lead to undefined behavior (e.g., java.util.ConcurrentModificationException) unless the specific implementation of the iterator guarantees otherwise.

Return

An Iterator that provides access to the Source objects in this playlist. Returns an empty iterator if the playlist has no sources, but typically should not return null.

See also